//
// Created by lingzhitech on 25-8-8.
//

#ifndef ACCOUNT_H
#define ACCOUNT_H
#include <string>

class Account {
public:
    void calculate() { amount += amount * interestRate; }
    static double rate() { return interestRate; }
    static void rate(double);
private:
    std::string owner;
    double amount;
    static double interestRate;
    static double initRate();
};
#endif //ACCOUNT_H
